<#setting number_format="#.##"/>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>财务结算表</title>
    <style>
        body {
            font-family: SimSun, Arial Unicode MS, Lucida Sans Unicode, Arial, verdana, arial, helvetica, sans-serif;
        }

        .printContent {
            margin: 0px;
            padding: 0px;
            font-size: 16px;
        }

        .printContent p {
            margin: 0px;
            padding: 0px;
            text-align: left;
            text-indent: 2em;
            line-height: 24px;
            width: 95%;
            margin-left: 20px;
        }

        .printContent .printTitle {
            text-indent: 0em;
            font-size: 22px;
            text-align: center;
            font-weight: bold;
            height: 36px;
        }

        .border {
            text-align: center;
            padding-left: 10px;
            padding-right: 10px;
            border-bottom: 1px solid #000000;
        }

        .borderBlock500 {
            text-align: center;
            width: 500px;
            display: inline-block;
            border-bottom: 1px solid #000000;
        }

        .paddingLeft {
            padding-left: 300px;
        }

        @page {
            margin: 5mm 10mm 0mm 10mm;
        }

        .pageBreak {
            page-break-before: always
        }

        .table_border_top_hidden {
            border-top: hidden;
        }

        .table_border_bottom_hidden {
            border-bottom: hidden;
            text-overflow: inherit;
            overflow: visible;
            height: auto;
            white-space: normal;
        }

        table {
            margin: auto;
            width: 95%;
            border-collapse: collapse;
            border-top: 2px solid #000000;
            border-left: 2px solid #000000;
            border-right: 1px solid #000000;
            border-bottom: 1px solid #000000;
            -fs-table-paginate: paginate;
            border-spacing: 0;
        }

        th, td {
            border-right: 1px solid #000000;
            border-bottom: 1px solid #000000;
            font-size: 16px;
            margin-left: 5px;
            height: 25px;
            page-break-inside: avoid;
            text-align: center;
        }
    </style>
</head>
<body>
<div class="printContent">
    <#if contract.financeCheckStatus ?? && contract.financeCheckStatus ==1><p class="printTitle">【财务未审核，此单据仅供预览】</p>
    </#if>
    <p class="printTitle">${strUtils.getNotNullText(contract.zsProject.printTableName)}选房安置财务结算表（Ⅰ）</p>
    <p class="printTitle">
        （住宅、车位）
    </p>
    <p style="text-align: right;margin-top: -20px">单位：元、平方米</p>
    <table class="table_border_bottom_hidden">
        <tr>
            <td colspan="2" style="width: 25%">被征收人</td>
            <td colspan="2" style="width: 25%">${strUtils.getNotNull(contract.name)}</td>
            <td colspan="2">选房号</td>
            <td colspan="2">${strUtils.getNotNull(contract.chooseHouseNum)}</td>
        </tr>

        <tr>
            <td colspan="2" style="width: 25%">身份证号码</td>
            <td colspan="8" style="width: 25%">${strUtils.getNotNull(contract.idCard)}</td>
        </tr>
        <tr>
            <td colspan="2">图编号</td>
            <td colspan="2" style="word-wrap:break-word;"> </td>
            <td colspan="2" style="width: 25%">协议编号</td>
            <td colspan="2" style="width: 25%">${strUtils.getNotNull(contract.contractCode)}</td>
        </tr>
        <#if hbMemo?? && (hbMemo?length > 0) >
            <tr>
                <td colspan="8" style="font-size: 14px">
                    ${strUtils.getNotNull(hbMemo)}
                </td>
            </tr>
        </#if>

        <tr>
            <td colspan="8">一、扩购或安置不足面积情况</td>
        </tr>
        <tr>
            <td colspan="2">扩购或安置不足面积</td>
            <td colspan="2">合并安置产权调换面积</td>
            <td colspan="2">实际扩购或安置不足面积</td>
            <td colspan="2">备    注</td>
        </tr>
        <tr>
            <td colspan="2"> </td>
            <td colspan="2">${bigUtils.getNotNullStr(contract.adjustArea)}</td>
            <td colspan="2"> </td>
            <td colspan="2">合并协议号</td>
        </tr>
    </table>
    <table class="table_border_top_hidden table_border_bottom_hidden">
        <tr>
            <td colspan="8">二、产权调换等面积安置应缴金额</td>
        </tr>
        <tr>
            <td style="width: 50%">产权调换等面积安置应缴款</td>
            <td style="width: 50%">X</td>
        </tr>
    </table>
    <table class="table_border_top_hidden table_border_bottom_hidden">
        <tr>
            <td colspan="5">三、选房结果与产权调换面积比扩购或减少安置面积应补金额</td>
        </tr>
        <tr>
            <td style="width: 16%">类别</td>
            <td style="width: 16%">面积</td>
            <td style="width: 12%">单价</td>
            <td style="width: 17%">金额</td>
            <td style="width: 15%">备注</td>

        </tr>
        <#if overHouseMoneyMap??>
            <#assign overHouseMoneyLength = overHouseMoneyMap?size/>
            <#list overHouseMoneyMap? keys as key>
                <#assign itemMap = overHouseMoneyMap[key]/>
                <tr>
                    <td>${key}</td>
                    <td>${itemMap["area"]}</td>
                    <td>${itemMap["price"]}元/㎡</td>
                    <td>${itemMap["money"]}</td>
                    <td> </td>
                </tr>
            </#list>
        </#if>
        <tr>
            <td style="width: 16%">安置不足部分</td>
            <td>
                <#if contract.isJiSuan ?? && contract.isJiSuan ==1>
                    <#if bigUtils.getNotNull(contract.zzResultArea) lt 0>
                        ${bigUtils.getNotNullStr(bigUtils.getBigAndBigSub(0,contract.zzResultArea))}
                    </#if>
                </#if>
            </td>
            <td>${bigUtils.getNotNullStr(parameter.xfbcPrice)}元/㎡</td>

            <td>
                <#if contract.isJiSuan ?? && contract.isJiSuan ==1>
                    <#if bigUtils.getNotNull(contract.houseMoney) gt 0>
                        ${bigUtils.getNotNullStr(contract.houseMoney)}
                    </#if>
                </#if>
            </td>
            <td>123</td>
        </tr>
        <tr>
            <td colspan="3">小计</td>
            <td colspan="1">${bigUtils.getNotNullStr(bigUtils.getSum(contract.houseMoney))}</td>
            <td colspan="1">X</td>

        </tr>
    </table>
    <table class="table_border_top_hidden">
        <tr>
            <td colspan="3">四、财务总结算</td>
        </tr>
        <tr>
            <td style="width: 40%;">选房期临时安置补助费（一次性发放三个月）</td>
            <td style="width: 40%;">扩购或安置不足应补金额</td>
            <td style="width: 20%;">应补缴金额</td>
        </tr>
        <tr>
            <td>${bigUtils.getNotNullStr(contract.bzMoneyTotal)}</td>
            <td>${bigUtils.getNotNullStr(contract.houseFinalNoWxjMoney)}</td>
            <td>${bigUtils.getNotNullStr(contract.houseMoney)}</td>
        </tr>
    </table>

    <table class="table_border_top_hidden">
        <tr>
            <td colspan="3">五、车位财务总结算</td>
        </tr>
        <tr>
            <td style="width: 40%;">/</td>
            <td style="width: 40%;">地下车位金额</td>
            <td style="width: 20%;">合计</td>
        </tr>
        <#if contract.carLotXianFangArea ?? && contract.carLotXianFangArea gt 0>

        <tr>
            <td>现房车位</td>
            <td>${bigUtils.getNotNullStr(contract.carLotXianFangMoney)}</td>
            <td>${bigUtils.getSumForInt(contract.carLotXianFangMoney)}</td>
        </tr>
    </#if>
    <#if contract.carLotQiFangArea ?? && contract.carLotQiFangArea gt 0>
    <tr>
        <td>期房车位</td>
        <td>${bigUtils.getNotNullStr(contract.carLotQiFangMoney)}</td>
        <td> ${bigUtils.getSumForInt(contract.carLotQiFangMoney)}</td>
    </tr>
    </#if>
    <tr>
        <td>小计</td>
        <td>${bigUtils.getNotNullStr(contract.carLotMoney)}</td>
        <td>${bigUtils.getNotNullStr(contract.carLotFinalMoney)}</td>
    </tr>
    </table>
    <p style="text-indent: 0em;font-size: 14px">注:数据中“-”为被动迁人应缴纳金额、“+”为被动迁人应领取金额。</p>
    <#if contract.chooseHouseQiFangAreaTotal ?? && contract.chooseHouseQiFangAreaTotal gt 0 >
        <p style="text-indent: 0em;font-size: 14px">
            注:现房缴款交房时，需最低缴款标准为【现房应缴交金额】+【发放临时安置补助费】+【现房部分维修基金】+【其他金额】，若为正数则等期房缴款交房时统一结算。</p>
        <p style="text-indent: 0em;font-size: 14px">期房部分过渡费计算办法：原过渡费-已选现房面积×6元/㎡×倍数(按期交房一倍，逾期交房2倍)。</p>
    </#if>
    <#if contract.financeMemo ?? && contract.financeMemo !="">
        <p style="text-indent: 0em;font-size: 14px">注:${strUtils.getNotNull(contract.financeMemo)}。</p>
    </#if>
    <p style="font-size: 18px;  text-indent: 0em;margin-top: 20px">被动迁人：&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;财务组：</p>
    <p style="font-size: 18px;  text-indent: 0em;margin-top: 40px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
        &#160;年&#160;月&#160;日
    </p>
</div>

<#if (contract.carLotNum?? && contract.carLotNum gt 0)>
<div style="page-break-after: always;"></div>
<div class="printContent">
    <#if contract.financeCheckStatus ?? && contract.financeCheckStatus ==1><p class="printTitle">【财务未审核，此单据仅供预览】</p>
</#if>
<p class="printTitle">${strUtils.getNotNullText(contract.zsProject.printTableName)}</p>
<p class="printTitle">选房财务结算表（Ⅱ）</p>
<p style="text-align: right;">单位：元、平方米</p>
<table class="table_border_bottom_hidden">
    <tr>
        <td colspan="2" style="width: 25%">被征收人</td>
        <td colspan="2" style="width: 25%">${strUtils.getNotNull(contract.name)}</td>
        <td colspan="2">选房号</td>
        <td colspan="2">${strUtils.getNotNull(contract.chooseHouseNum)}</td>
    </tr>

    <tr>
        <td colspan="2" style="width: 25%">身份证号码</td>
        <td colspan="8" style="width: 25%">${strUtils.getNotNull(contract.idCard)}</td>
    </tr>
    <tr>
        <td colspan="2">图编号</td>
        <td colspan="2" style="word-wrap:break-word;"> </td>
        <td colspan="2" style="width: 25%">协议编号</td>
        <td colspan="2" style="width: 25%">${strUtils.getNotNull(contract.contractCode)}</td>
    </tr>
</table>
<table class="table_border_top_hidden table_border_bottom_hidden">
    <tr>
        <td colspan="5">公共维修金应缴款项</td>
    </tr>
    <tr>
        <td>性质</td>
        <td>面积</td>
        <td>缴交标准</td>
        <td>金额</td>
        <td>备注</td>
    </tr>
    <tr>
        <td>住宅</td>
        <td>${bigUtils.getNotNullStr(contract.chooseHouseAreaTotal)}</td>
        <td>${bigUtils.getNotNullStr(parameter.zzwxPrice)}元/㎡</td>
        <td>${bigUtils.getNotNullStr(contract.zzwxMoney)}</td>
        <td>X</td>
    </tr>
    <tr>
        <td>储藏间</td>
        <td>${bigUtils.getNotNullStr(contract.storageRoomArea)}</td>
        <td>${bigUtils.getNotNullStr(parameter.ccjwxPrice)}元/㎡</td>
        <td>${bigUtils.getNotNullStr(contract.ccjwxMoney)}</td>
        <td>X</td>
    </tr>
    <tr>
        <td>地下车位</td>
        <td>${bigUtils.getNotNullStr(contract.carLotArea)}</td>
        <td>${bigUtils.getNotNullStr(parameter.cwwxPrice)}元/㎡</td>
        <td>${bigUtils.getNotNullStr(contract.cwwxMoney)}</td>
        <td>X</td>
    </tr>
    <tr>
        <td>店面</td>
        <td>${bigUtils.getNotNullStr(contract.shopHouseArea)}</td>
        <td>${bigUtils.getNotNullStr(parameter.dmwxPrice)}元/㎡</td>
        <td>${bigUtils.getNotNullStr(contract.dmwxMoney)}</td>
        <td>X</td>
    </tr>
    <tr>
        <td>合计</td>
        <td>${bigUtils.getNotNullStr(contract.sumAzAreaTotal)}</td>
        <td>${bigUtils.getNotNullStr(parameter.cwwxPrice)}元/㎡</td>
        <td>${bigUtils.getNotNullStr(contract.wxMoneyTotal)}</td>
        <td>X</td>
    </tr>
</table>
<p style="text-indent: 0em;font-size: 14px">注:数据中“-”为被征收人应缴纳金额、“+”为被征收人应领取金额。</p>
<p style="font-size: 18px;  text-indent: 0em;margin-top: 20px">被征收人：&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;财务组：</p>
<p style="font-size: 18px;  text-indent: 0em;margin-top: 40px">
    <#if contract.financeCheckDate ?? >
    ${contract.financeCheckDate?string["yyyy年MM月dd日"]}
    <#else/>
    ${.now?string["yyyy年MM月dd日"]}
</#if>
    &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
    <#if contract.financeCheckDate ?? >
    ${contract.financeCheckDate?string["yyyy年MM月dd日"]}
    <#else/>
    ${.now?string["yyyy年MM月dd日"]}
</#if>
</p>
</div>
</#if>

<#if (contract.shopHouseNum?? && contract.shopHouseNum gt 0)>
<div style="page-break-after: always;"></div>
<div class="printContent">
    <#if contract.financeCheckStatus ?? && contract.financeCheckStatus ==1>
    <p class="printTitle">【财务未审核，此单据仅供预览】</p>
</#if>
<p class="printTitle">${strUtils.getNotNullText(contract.zsProject.printTableName)}选房安置财务结算表（Ⅰ）</p>
<p class="printTitle">（商业用房）</p>
<p style="text-align: right;">单位：元、平方米</p>
<table class="table_border_bottom_hidden">
    <tr>
        <td colspan="2" style="width: 25%">被征收人</td>
        <td colspan="2" style="width: 25%">${strUtils.getNotNull(contract.name)}</td>
        <td colspan="2">选房号</td>
        <td colspan="2">${strUtils.getNotNull(contract.chooseHouseNum)}</td>
    </tr>
    <tr>
        <td colspan="2" style="width: 25%">身份证号码</td>
        <td colspan="8" style="width: 25%">${strUtils.getNotNull(contract.idCard)}</td>
    </tr>
    <tr>
        <td colspan="2">图编号</td>
        <td colspan="2" style="word-wrap:break-word;"> </td>
        <td colspan="2" style="width: 25%">协议编号</td>
        <td colspan="2" style="width: 25%">${strUtils.getNotNull(contract.contractCode)}</td>
    </tr>
</table>
<table class="table_border_top_hidden">
    <tr>
        <td colspan="5">一、选择安置房（商业）面积与选择产权调换面积比</td>
    </tr>
    <tr>
        <td width="20%">房屋用途</td>
        <td width="20%">安置路段</td>
        <td width="20%">产权调换面积</td>
        <td width="20%">面积</td>
        <td width="20%">扩购或安置不足面积</td>
    </tr>
    <tr>
        <td style="width: 20%">商业店面</td>
        <td style="width: 20%">X</td>
        <td style="width: 20%">${bigUtils.getNotNullStr(contract.limitHouseAreaTotal)}</td>
        <td style="width: 20%">${bigUtils.getNotNullStr(contract.dmResultArea)}</td>
        <td style="width: 20%">X</td>
    </tr>
    <tr>
        <td style="width: 20%">二层商业（写字楼）</td>
        <td style="width: 20%">X</td>
        <td style="width: 20%">${bigUtils.getNotNullStr(contract.limitHouseAreaTotal)}</td>
        <td style="width: 20%">${bigUtils.getNotNullStr(contract.dmResultArea)}</td>
        <td style="width: 20%">X</td>
    </tr>
    <tr>
        <td style="width: 20%">一层商场（经营场所）</td>
        <td style="width: 20%">X</td>
        <td style="width: 20%">${bigUtils.getNotNullStr(contract.limitHouseAreaTotal)}</td>
        <td style="width: 20%">${bigUtils.getNotNullStr(contract.dmResultArea)}</td>
        <td style="width: 20%">X</td>
    </tr>
</table>
<table class="table_border_top_hidden table_border_bottom_hidden">
    <tr>
        <td colspan="8">二、产权调换等面积安置应缴金额</td>
    </tr>
    <tr>
        <td style="width: 50%">产权调换等面积安置应缴款</td>
        <td style="width: 50%">X</td>
    </tr>
</table>
<table class="table_border_top_hidden table_border_bottom_hidden">
    <tr>
        <td colspan="5">三、选房结果与产权调换面积比扩购或减少安置面积应补金额</td>
    </tr>
    <tr>
        <td style="width: 16%">房屋用途</td>
        <td style="width: 16%">扩购或安置不足</td>
        <td style="width: 16%">面积</td>
        <td style="width: 12%">单价</td>
        <td style="width: 17%">金额</td>
    </tr>
    <#if overHouseMoneyMap??>
    <#assign overHouseMoneyLength = overHouseMoneyMap?size/>
    <#list overHouseMoneyMap? keys as key>
    <#assign itemMap = overHouseMoneyMap[key]/>
    <tr>
        <td>X</td>
        <td>${key}</td>
        <td>${itemMap["area"]}</td>
        <td>${itemMap["price"]}元/㎡</td>
        <td>${itemMap["money"]}</td>
    </tr>
</#list>
</#if>
<tr>
    <td>X</td>
    <td style="width: 16%">安置不足部分</td>
    <td>
        <#if contract.isJiSuan ?? && contract.isJiSuan ==1>
        <#if bigUtils.getNotNull(contract.zzResultArea) lt 0>
        ${bigUtils.getNotNullStr(bigUtils.getBigAndBigSub(0,contract.zzResultArea))}
    </#if>
</#if>
</td>
<td>${bigUtils.getNotNullStr(parameter.xfbcPrice)}元/㎡</td>

<td>
    <#if contract.isJiSuan ?? && contract.isJiSuan ==1>
    <#if bigUtils.getNotNull(contract.houseMoney) gt 0>
    ${bigUtils.getNotNullStr(contract.houseMoney)}
</#if>
</#if>
</td>
</tr>
<tr>
    <td>X</td>
    <td colspan="2">小计</td>
    <td colspan="1">X</td>
    <td colspan="1">${bigUtils.getNotNullStr(bigUtils.getSum(contract.houseMoney))}</td>
</tr>
</table>
<table class="table_border_top_hidden">
    <tr>
        <td colspan="3">四、财务总结算</td>
    </tr>
    <tr>
        <td style="width: 40%;">选房期临时安置补助费（一次性发放三个月）</td>
        <td style="width: 40%;">扩购或安置不足应补金额</td>
        <td style="width: 20%;">应补缴金额</td>
    </tr>
    <tr>
        <td>${bigUtils.getNotNullStr(contract.bzMoneyTotal)}</td>
        <td>${bigUtils.getNotNullStr(contract.houseFinalNoWxjMoney)}</td>
        <td>${bigUtils.getNotNullStr(contract.houseMoney)}</td>
    </tr>
</table>
<p style="text-indent: 0em;font-size: 14px">注:数据中“-”为被征收人应缴纳金额、“+”为被征收人应领取金额。</p>
<p style="font-size: 18px;  text-indent: 0em;margin-top: 20px">被征收人：&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;财务组：</p>
<p style="font-size: 18px;  text-indent: 0em;margin-top: 40px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
    <#if contract.financeCheckDate ?? >
    ${contract.financeCheckDate?string["yyyy年MM月dd日"]}
    <#else/>
    ${.now?string["yyyy年MM月dd日"]}
</#if>
</p>
</div>
</#if>

</body>
</html>